#include "pch.h"
#include "Game.h"
using namespace DirectX;
#pragma warning(disable : 4061)

int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    if (!XMVerifyCPUSupport())
        return 1;

    HRESULT hr = CoInitializeEx(nullptr, COINITBASE_MULTITHREADED);
    if (FAILED(hr))
        return 1;

    auto  g_game = Game::GetInstance();
    g_game->Initialize(hInstance);
    g_game->Run();
    CoUninitialize();
    return 0;
}


